home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 1998 #2 / MACPEOPLE-1998-NO2.ISO / アップル関連 / ARA PS アップデート / モデム用 / OMRON ME2814C ARA2 / OMRON ME2814C ARA2 next >
Text File  |  1998-01-01  |  14KB  |  714 lines

  1. !**************************************************************************
  2. !    OMRON ME2814C  ARA Ver2.0 JAPAN
  3. !    1995/10/17 Ver1.0
  4. !    Written by OMRON Corp.  
  5. !
  6. !  'mlts' resource info for this modem:
  7. !    byte 1 == 01 -> modem HAS builtin reliability protocols
  8. !    byte 2 == 00 -> reserved by Apple
  9. !    byte 3 == 23 -> max hex chars in varstr 7 (35 dec)
  10. !    byte 4 == 23 -> max hex chars in varstr 8
  11. !    byte 5 == 23 -> max hex chars in varstr 9
  12. !    
  13. !**************************************************************************
  14. @ORIGINATE
  15. @ANSWER
  16. !------------------------
  17. ! reset the serial port
  18. !------------------------
  19. HSReset 0 0 0 0 0 0  
  20. @LABEL 1
  21. DTRClear
  22. pause 10
  23. DTRSet
  24. pause 3
  25. ! Mac talks to the modem at 28,800 bps.
  26. serreset 19200, 0, 8, 1
  27. setspeed 28800
  28. matchclr
  29. settries 0
  30. ! Modem initialize ATZ
  31. @LABEL 2
  32. matchclr
  33. matchstr 1 3 "OK¥13¥10"
  34. matchstr 2 3 "0¥13"
  35. write "ATZ¥13"
  36. matchread 15
  37. inctries
  38. iftries 3 3
  39. jump 2
  40. ! Modem Setting
  41. ! E0  - Command Echo Off
  42. ! Q0  - Command Response On
  43. ! V1  - Command Response Format Word
  44. ! M1  - Speaker Moniter on until carrier detected
  45. ! &C1 - Carrier Signal Detect Carrier from the remote modem 
  46. ! &D2 - Data Terminal Ready Control On to Off on-hook
  47. ! &S1 - Activates DSR before handshaking
  48. ! W1  - Result Error Corection Type
  49. ! ¥N0 - Error Colection MNP-Off,V.42-Off
  50. ! &K3 - RTS&CTS Hardware flow Control
  51. ! S0=0 - Don't answer calls
  52. @LABEL 3
  53. matchclr
  54. matchstr 1 4 "OK¥13¥10"
  55. pause 2
  56. write "ATE0Q0V1M1&C1&D2&S1X4W1¥¥N0&K3S0=0¥13"
  57. matchread 15
  58. inctries
  59. iftries 3 105
  60. jump 3
  61. !-----------------------------------------
  62. ! Modem responding & configured.
  63. ! determine if reliable link is requested.
  64. !-----------------------------------------
  65. @LABEL 4
  66. ! if modem mnp10 link requested (var 4 == 2) then jump label 5
  67. ifstr 4 5 "2"
  68. !
  69. ! if modem v42 link requested (var 4 == 1) then jump label 6
  70. ifstr 4 6 "1"
  71. !
  72. ! if no modem v42 link requested (var 4 == 0) [same as ARA 1.0] then jump label 9
  73. ifstr 4 8 "0"
  74. !
  75. ! else invalid value in var 4; exit w/error
  76. jump 110
  77. !--------------------------------
  78. ! MNP10 Link Setting.
  79. !--------------------------------
  80. @LABEL 5
  81. matchclr
  82. matchstr 1 7 "OK¥13¥10"
  83. ! ¥N3 - MNP-On,V.42-On
  84. ! %C0 - DATACOMP-Off
  85. pause 2
  86. write "AT¥¥N3%C0¥13"
  87. matchread 15
  88. inctries
  89. iftries 3 105
  90. jump 5
  91. !-----------------------------------------------------
  92. ! V.42 Link Setting V.42 --> MNP --> Normal
  93. !-----------------------------------------------------
  94. @LABEL 6
  95. matchclr
  96. matchstr 1 7 "OK¥13¥10"
  97. pause 2
  98. write "AT¥¥N3%C0¥13"
  99. matchread 15
  100. inctries
  101. iftries 3 105
  102. jump 6
  103. !------------------------------------------------------------------------
  104. ! If we DID support compression in the modem, this is where it would go.
  105. !------------------------------------------------------------------------
  106. @LABEL 7
  107. !
  108. !
  109. !
  110. !------------------------------------------------------------------------
  111. ! Set ID OMRON ME2814C.
  112. !------------------------------------------------------------------------
  113. @LABEL 8
  114. matchclr
  115. matchstr 1 9 "28800¥13¥10¥13¥10OK¥13¥10"
  116. pause 2
  117. write "ATI0¥13"
  118. matchread 15
  119. inctries
  120. iftries 3 105
  121. jump 8
  122. !--------------------------------------------------------------------------
  123. ! If speaker on flag is true, jump to label 13.  Else turn off the speaker.
  124. !--------------------------------------------------------------------------
  125. @LABEL 9
  126. ifstr 2 13 "1"
  127. pause 5
  128. matchclr
  129. matchstr 1 13 "OK¥13¥10"
  130. pause 2
  131. write "ATM0¥13"
  132. matchread 15
  133. inctries
  134. iftries 3 105
  135. jump 9
  136. !*******************************************************************************
  137. ! modem ready, so enable answering or originate a call - label range is 11-30
  138. !
  139. !
  140. !*******************************************************************************
  141. @LABEL 13
  142. pause 5
  143. ifANSWER 100
  144. !
  145. ! if normal dialing (parm 6 == 0) jump to 19
  146. ifstr 6 19 "0"
  147. !
  148. ! if blind dialing (parm 6 == 1) jump to 17
  149. ifstr 6 17 "1"
  150. !
  151. ! if manual dialing (parm 6 == 2) jump to 15 
  152. ifstr 6 15 "2"
  153. !
  154. ! else invalid value in var 6; exit w/error
  155. jump 110
  156. !
  157. !
  158. !
  159. @LABEL 15
  160. note "手動で発信をしています。" 3
  161. ! X1 to ignore dialtone & busy for manual dialing, D to dial
  162. write "ATX1D ¥13"
  163. jump 32
  164. !
  165. !
  166. !
  167. @LABEL 17
  168. matchclr
  169. matchstr 1 19 "OK¥13¥10"
  170. ! X3 to ignore dialtone for blind dialing
  171. pause 2
  172. write "ATX3¥13"
  173. matchread 30
  174. inctries
  175. iftries 3 105
  176. jump 17
  177. !
  178. !
  179. !
  180. @LABEL 19
  181. ! this is where we break up long dialstrings
  182. !
  183. ! parm 1 is always the full dialstring from the conn doc
  184. !note "Dialing ^1" 3
  185. note "^1に電話をしています。" 3
  186. ! parm 3 is always "p" for pulse & "t" for tone
  187. !
  188. ! if parm 8 == blank (complete dialstring in parm 7)
  189. !  then jump to label 27 & dial parm 7
  190. ifstr 8 27 " "
  191. !
  192. ! if parm 9 == blank (complete dialstring in parms 7 & 8)
  193. !  then jump to label 24 & dial parm 7 & 8
  194. ifstr 9 24 " "
  195. !
  196. !  else dial parm 7 & 8 & 9 (complete dialstring in parms 7, 8 & 9)
  197. matchclr
  198. matchstr 1 21 "OK¥13¥10"
  199. ! parm 7 holds first string fragment
  200. write "ATD^3^7;¥13"
  201. matchread 500
  202. ! modem not responding; bailout.
  203. jump 105
  204. !
  205. !
  206. !
  207. @LABEL 21
  208. ! parm 8 holds second string fragment
  209. matchclr
  210. matchstr 1 22 "OK¥13¥10"
  211. write "ATD^3^8;¥13"
  212. matchread 500
  213. ! modem not responding; bailout.
  214. jump 105
  215. !
  216. !
  217. !
  218. @LABEL 22
  219. ! parm 9 holds last string fragment
  220. write "ATD^3^9¥13"
  221. jump 32
  222. !
  223. !
  224. !
  225. !
  226. @LABEL 24
  227. matchclr
  228. matchstr 1 25 "OK¥13¥10"
  229. ! parm 7 holds first string fragment
  230. write "ATD^3^7;¥13"
  231. matchread 500
  232. ! modem not responding; bailout.
  233. jump 105
  234. !
  235. !
  236. !
  237. @LABEL 25
  238. ! parm 8 holds last string fragment
  239. write "ATD^3^8¥13"
  240. jump 32
  241. !
  242. !
  243. !
  244. @LABEL 27
  245. ! parm 7 holds entire string
  246. write "ATD^3^7¥13"
  247. jump 32
  248. !***********************************************
  249. !    connecting - label range is 34-99
  250. !
  251. !
  252. !***********************************************
  253. @LABEL 32
  254. matchclr
  255. !
  256. matchstr 1  34 "CARRIER 1200¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  257. matchstr 2  35 "CARRIER 1200¥13¥10¥13¥10PROTOCOL: MNP"
  258. matchstr 3  37 "CARRIER 1200¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  259. !
  260. matchstr 4  38 "CARRIER 2400¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  261. matchstr 5  39 "CARRIER 2400¥13¥10¥13¥10PROTOCOL: MNP"
  262. matchstr 6  41 "CARRIER 2400¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  263. !
  264. matchstr 7  42 "CARRIER 4800¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  265. matchstr 8  43 "CARRIER 4800¥13¥10¥13¥10PROTOCOL: MNP"
  266. matchstr 9  45 "CARRIER 4800¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  267. !
  268. matchstr 10 46 "CARRIER 7200¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  269. matchstr 11 47 "CARRIER 7200¥13¥10¥13¥10PROTOCOL: MNP"
  270. matchstr 12 49 "CARRIER 7200¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  271. !
  272. matchstr 13 50 "CARRIER 9600¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  273. matchstr 14 51 "CARRIER 9600¥13¥10¥13¥10PROTOCOL: MNP"
  274. matchstr 15 53 "CARRIER 9600¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  275. !
  276. matchstr 16 54 "CARRIER 12000¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  277. matchstr 17 55 "CARRIER 12000¥13¥10¥13¥10PROTOCOL: MNP"
  278. matchstr 18 57 "CARRIER 12000¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  279. !
  280. matchstr 19 58 "CARRIER 14400¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  281. matchstr 20 59 "CARRIER 14400¥13¥10¥13¥10PROTOCOL: MNP"
  282. matchstr 21 61 "CARRIER 14400¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  283. !
  284. matchstr 22 62 "CARRIER 16800¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  285. matchstr 23 63 "CARRIER 16800¥13¥10¥13¥10PROTOCOL: MNP"
  286. matchstr 24 65 "CARRIER 16800¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  287. !
  288. matchstr 25 66 "CARRIER 19200¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  289. matchstr 26 67 "CARRIER 19200¥13¥10¥13¥10PROTOCOL: MNP"
  290. matchstr 27 69 "CARRIER 19200¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  291. !
  292. matchstr 28 70 "CARRIER 21600¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  293. matchstr 29 71 "CARRIER 21600¥13¥10¥13¥10PROTOCOL: MNP"
  294. matchstr 30 73 "CARRIER 21600¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  295. !
  296. matchstr 31 74 "CARRIER 24000¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  297. matchstr 32 75 "CARRIER 24000¥13¥10¥13¥10PROTOCOL: MNP"
  298. matchstr 33 77 "CARRIER 24000¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  299. !
  300. matchstr 34 78 "CARRIER 26400¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  301. matchstr 35 79 "CARRIER 26400¥13¥10¥13¥10PROTOCOL: MNP"
  302. matchstr 36 81 "CARRIER 26400¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  303. !
  304. matchstr 37 82 "CARRIER 28800¥13¥10¥13¥10PROTOCOL: NONE¥13¥10"
  305. matchstr 38 83 "CARRIER 28800¥13¥10¥13¥10PROTOCOL: MNP"
  306. matchstr 39 85 "CARRIER 28800¥13¥10¥13¥10PROTOCOL: LAP-M¥13¥10"
  307. !
  308. ! other result codes.
  309. !
  310. matchstr 40 101 "RING¥13¥10"
  311. matchstr 41 106 "NO DIALTONE¥13¥10"
  312. matchstr 42 107 "NO CARRIER¥13¥10"
  313. matchstr 43 107 "ERROR¥13¥10"
  314. matchstr 44 108 "BUSY¥13¥10"
  315. matchstr 45 109 "NO ANSWER¥13¥10"
  316. matchstr 46 111 "CONNECT¥13¥10"
  317. !
  318. matchread 700
  319. jump 32
  320. ifANSWER 32
  321. jump 105
  322. !------------------------------------------------------------
  323. !  THIS v32b modem has been setup to do cts handshaking,
  324. !  and we assume that a cts handshaking cable is being used,
  325. !  so we leave the serial port set to 19,200 bps.
  326. !------------------------------------------------------------
  327. @LABEL 34
  328. note "1200bpsで接続確認中" 3
  329. CommunicatingAt 1200
  330. jump 90
  331. !
  332. @LABEL 35
  333. note "1200bps-MNPで接続確認中" 3
  334. CommunicatingAt 1200
  335. jump 90
  336. !
  337. @LABEL 36
  338. note "1200bps-MNP10で接続確認中" 3
  339. CommunicatingAt 1200
  340. jump 90
  341. !
  342. @LABEL 37
  343. note "1200bps-V.42で接続確認中" 3
  344. CommunicatingAt 1200
  345. jump 90
  346. !
  347. !
  348. !
  349. @LABEL 38
  350. note "2400bpsで接続確認中" 3
  351. CommunicatingAt 2400
  352. jump 90
  353. !
  354. @LABEL 39
  355. note "2400bps-MNPで接続確認中" 3
  356. CommunicatingAt 2400
  357. jump 90
  358. !
  359. @LABEL 40
  360. note "2400bps-MNP10で接続確認中" 3
  361. CommunicatingAt 2400
  362. jump 90
  363. !
  364. @LABEL 41
  365. note "2400bps-V.42で接続確認中" 3
  366. CommunicatingAt 2400
  367. jump 90
  368. !
  369. !
  370. !
  371. @LABEL 42
  372. note "4800bpsで接続確認中" 3
  373. CommunicatingAt 4800
  374. jump 90
  375. !
  376. @LABEL 43
  377. note "4800bps-MNPで接続確認中" 3
  378. CommunicatingAt 4800
  379. jump 90
  380. !
  381. @LABEL 44
  382. note "4800bps-MNP10で接続確認中" 3
  383. CommunicatingAt 4800
  384. jump 90
  385. !
  386. @LABEL 45
  387. note "4800bps-V.42で接続確認中" 3
  388. CommunicatingAt 4800
  389. jump 90
  390. !
  391. !
  392. !
  393. @LABEL 46
  394. note "7200bpsで接続確認中" 3
  395. CommunicatingAt 7200
  396. jump 90
  397. !
  398. @LABEL 47
  399. note "7200bps-MNPで接続確認中" 3
  400. CommunicatingAt 7200
  401. jump 90
  402. !
  403. @LABEL 48
  404. note "7200bps-MNP10で接続確認中" 3
  405. CommunicatingAt 7200
  406. jump 90
  407. !
  408. @LABEL 49
  409. note "7200bps-V.42で接続確認中" 3
  410. CommunicatingAt 7200
  411. jump 90
  412. !
  413. !
  414. !
  415. @LABEL 50
  416. note "9600bpsで接続確認中" 3
  417. CommunicatingAt 9600
  418. jump 90
  419. !
  420. @LABEL 51
  421. note "9600bps-MNPで接続確認中" 3
  422. CommunicatingAt 9600
  423. jump 90
  424. !
  425. @LABEL 52
  426. note "9600bps-MNP10で接続確認中" 3
  427. CommunicatingAt 9600
  428. jump 90
  429. !
  430. @LABEL 53
  431. note "9600bps-V.42で接続確認中" 3
  432. CommunicatingAt 9600
  433. jump 90
  434. !
  435. !
  436. !
  437. @LABEL 54
  438. note "12000bpsで接続確認中" 3
  439. CommunicatingAt 12000
  440. jump 90
  441. !
  442. @LABEL 55
  443. note "12000bps-MNPで接続確認中" 3
  444. CommunicatingAt 12000
  445. jump 90
  446. !
  447. @LABEL 56
  448. note "12000bps-MNP10で接続確認中" 3
  449. CommunicatingAt 12000
  450. jump 90
  451. !
  452. @LABEL 57
  453. note "12000bps-V.42で接続確認中" 3
  454. CommunicatingAt 12000
  455. jump 90
  456. !
  457. !
  458. !
  459. @LABEL 58
  460. note "14400bpsで接続確認中" 3
  461. CommunicatingAt 14400
  462. jump 90
  463. !
  464. @LABEL 59
  465. note "14400bps-MNPで接続確認中" 3
  466. CommunicatingAt 14400
  467. jump 90
  468. !
  469. @LABEL 60
  470. note "14400bps-MNP10で接続確認中" 3
  471. CommunicatingAt 14400
  472. jump 90
  473. !
  474. @LABEL 61
  475. note "14400bps-V.42で接続確認中" 3
  476. CommunicatingAt 14400
  477. jump 90
  478. !
  479. !
  480. !
  481. @LABEL 62
  482. note "16800bpsで接続確認中" 3
  483. CommunicatingAt 16800
  484. jump 90
  485. !
  486. @LABEL 63
  487. note "16800bps-MNPで接続確認中" 3
  488. CommunicatingAt 16800
  489. jump 90
  490. !
  491. @LABEL 65
  492. note "16800bps-V.42で接続確認中" 3
  493. CommunicatingAt 16800
  494. jump 90
  495. !
  496. !
  497. !
  498. @LABEL 66
  499. note "19200bpsで接続確認中" 3
  500. CommunicatingAt 19200
  501. jump 90
  502. !
  503. @LABEL 67
  504. note "19200bps-MNPで接続確認中" 3
  505. CommunicatingAt 19200
  506. jump 90
  507. !
  508. @LABEL 69
  509. note "19200bps-V.42で接続確認中" 3
  510. CommunicatingAt 19200
  511. jump 90
  512. !
  513. !
  514. !
  515. @LABEL 70
  516. note "21600bpsで接続確認中" 3
  517. CommunicatingAt 21600
  518. jump 90
  519. !
  520. @LABEL 71
  521. note "21600bps-MNPで接続確認中" 3
  522. CommunicatingAt 21600
  523. jump 90
  524. !
  525. @LABEL 73
  526. note "21600bps-V.42で接続確認中" 3
  527. CommunicatingAt 21600
  528. jump 90
  529. !
  530. !
  531. !
  532. @LABEL 74
  533. note "24000bpsで接続確認中" 3
  534. CommunicatingAt 24000
  535. jump 90
  536. !
  537. @LABEL 75
  538. note "24000bps-MNPで接続確認中" 3
  539. CommunicatingAt 24000
  540. jump 90
  541. !
  542. @LABEL 77
  543. note "24000bps-V.42で接続確認中" 3
  544. CommunicatingAt 24000
  545. jump 90
  546. !
  547. !
  548. !
  549. @LABEL 78
  550. note "26400bpsで接続確認中" 3
  551. CommunicatingAt 26400
  552. jump 90
  553. !
  554. @LABEL 79
  555. note "26400bps-MNPで接続確認中" 3
  556. CommunicatingAt 26400
  557. jump 90
  558. !
  559. @LABEL 81
  560. note "26400bps-V.42で接続確認中" 3
  561. CommunicatingAt 26400
  562. jump 90
  563. !
  564. !
  565. !
  566. @LABEL 82
  567. note "28800bpsで接続確認中" 3
  568. CommunicatingAt 28800
  569. jump 90
  570. !
  571. @LABEL 83
  572. note "28800bps-MNPで接続確認中" 3
  573. CommunicatingAt 28800
  574. jump 90
  575. !
  576. @LABEL 85
  577. note "28800bps-V.42で接続確認中" 3
  578. CommunicatingAt 28800
  579. jump 90
  580. !
  581. !
  582. !
  583. @LABEL 90
  584. ! turn on cts handshaking.
  585. HSReset 0 1 0 0 0 0
  586. !
  587. pause 30
  588. ifANSWER 91
  589. pause 15
  590. @LABEL 91
  591. exit 0
  592. !************************************************************
  593. ! @ANSWER
  594. ! Set the modem to answer on 1st ring - label range is 100-104
  595. !
  596. !************************************************************
  597. @LABEL 100
  598. matchclr
  599. matchstr 1 32 "OK¥13¥10"
  600. pause 2
  601. write "ATS0=2¥13"
  602. matchread 30
  603. inctries
  604. iftries 3 105
  605. jump 100
  606. !
  607. @LABEL 101
  608. ifORIGINATE 32
  609. ! claim the serial port
  610. userhook 1
  611. note "電話がかかってきました。" 2
  612. jump 32
  613. !************************************************
  614. ! error messages - label range is 105-114
  615. !
  616. !
  617. !************************************************
  618. ! Modem Not Responding
  619. @LABEL 105
  620. exit -6019
  621. !
  622. ! No Dial Tone
  623. @LABEL 106
  624. note "電話回線が接続されていない。または、0発信をしている場合はダイヤルトーン検出無視にして下さい" 3
  625. exit -6020
  626. !
  627. ! No Carrier or Error
  628. @LABEL 107
  629. exit -6021
  630. !
  631. ! Busy
  632. @LABEL 108
  633. exit -6022
  634. !
  635. ! No Answer
  636. @LABEL 109
  637. exit -6023
  638. !
  639. ! varstring invalid value
  640. @LABEL 110
  641. exit -6027
  642. !
  643. ! Connect 300bps
  644. @LABEL 111
  645. exit -6002 "ARA doesn't support 300bps connection."
  646. !
  647. !********************************************
  648. ! Hang up the modem - label range is 115-120
  649. !
  650. !
  651. !********************************************
  652. @HANGUP
  653. @LABEL 115
  654. settries 0
  655. HSReset 0 0 0 0 0 0
  656. @LABEL 116
  657. !----------------------------
  658. ! firstly try escape sequence
  659. !----------------------------
  660. serreset 19200, 0, 8, 1
  661. setspeed 28800
  662. matchclr
  663. matchstr 1 117 "OK¥13¥10"
  664. pause 10
  665. write "+++"
  666. matchread 15
  667. !
  668. @LABEL 117
  669. !-------------------
  670. ! secondly try ATH
  671. !-------------------
  672. matchclr
  673. matchstr 1 119 "NO CARRIER¥13¥10"
  674. matchstr 2 119 "OK¥13¥10"
  675. matchstr 3 119 "ERROR¥13¥10"
  676. write "ATH¥13"
  677. matchread 50
  678. inctries
  679. iftries 3 118
  680. jump 117
  681. !---------------------------------------
  682. ! finaly try On-to-Off DTR transitions
  683. !---------------------------------------
  684. @LABEL 118
  685. DTRSet
  686. pause 5
  687. DTRClear
  688. pause 5
  689. DTRSet
  690. flush
  691. jump 119
  692. !------------------------------
  693. ! recall the factory settings.
  694. !------------------------------
  695. @LABEL 119
  696. serreset 19200, 0, 8, 1
  697. setspeed 28800
  698. pause 15
  699. matchclr
  700. matchstr 1 120 "OK¥13¥10"
  701. write "ATS0=0¥13"
  702. matchread 30
  703. inctries
  704. iftries 3 105
  705. jump 119
  706. !
  707. @LABEL 120
  708. exit 0
  709.  
  710. !*********************************************************
  711. ! labels 121-128 are reserved for future emergency hacks
  712. !
  713. !
  714. !*********************************************************